home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 117 / PC Guia 117.iso / Software / Utils / Software6 / Product2 / adblock-0.5.2.039-fx.xpi / chrome / adblock.jar / content / adblock.xul < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-03  |  7.1 KB  |  111 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.     - Version: MPL 1.1
  4.     -
  5.     - The contents of this file are subject to the Mozilla Public License Version
  6.     - 1.1 (the "License"); you may not use this file except in compliance with
  7.     - the License. You may obtain a copy of the License at
  8.     - http://www.mozilla.org/MPL/
  9.     -
  10.     - Software distributed under the License is distributed on an "AS IS" basis,
  11.     - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.     - for the specific language governing rights and limitations under the
  13.     - License.
  14.     -
  15.     - The Original Code is Adblock for Mozilla.
  16.     -
  17.     - The Initial Developer of the Original Code is
  18.     - Henrik Aasted Sorensen.
  19.     - Portions created by the Initial Developer are Copyright (C) 2002
  20.     - the Initial Developer. All Rights Reserved.
  21.     -
  22.     - Contributor(s):
  23.     - Henrik Aasted Sorensen
  24.     - Stefan Kinitz
  25.     - Wladimir Palant
  26.     - rue
  27.     - ***** END LICENSE BLOCK ***** -->
  28.  
  29. <?xml-stylesheet href="chrome://adblock/content/adblock.css" type="text/css"?>
  30.  
  31. <overlay id="adblock-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  32.  
  33.     <script src="adblock.js"/>    
  34.     <script src="global.js"/>    
  35.     <!-- script>
  36.         <![CDATA[
  37.             // our window-load itinerary resides in the pref-observer's onload, now   (adblock.js)
  38.         ]]>
  39.     </script -->
  40.     
  41.     <!-- pre-observer load -->
  42.     <window id="main-window">
  43.         <adblock id="adblock-load-mechanism"/>
  44.     </window>
  45.     
  46.     <!-- statusbar -->
  47.     <statusbar id="status-bar">
  48.         <statusbarpanel id="adblock-status" label="Unloaded" status="unloaded" quickblock="off" xxinsertafter="statusbarpanel-progress,security-button,privacy-button,offline-status,popupIcon,statusbar-display,component-bar,"/>
  49.         <!-- 
  50.         <statusbarpanel id="adblock-status" xxcontext="statusbar-menu" XXtooltiptext="" label="Unloaded" status="unloaded" quickblock="off" xxinsertafter="statusbarpanel-progress,security-button,privacy-button,offline-status,popupIcon,statusbar-display,component-bar"/>
  51.         <popup id="statusbar-menu" position="before_end" onpopupshown="var Branch = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch('adblock.'); var isEnabled = !Branch.prefHasUserValue('enabled') || Branch.getBoolPref('enabled'); if(isEnabled) { document.getElementById('enableAdblock').collapsed = true; document.getElementById('disableAdblock').collapsed = false;} else { document.getElementById('enableAdblock').collapsed = false; document.getElementById('disableAdblock').collapsed = true; }" onpopuphidden="">
  52.                 <menuitem id="enableAdblock" label="Enable Adblock" oncommand="Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch('adblock.').setBoolPref('enabled', true); Components.classes['@mozilla.org/observer-service;1'].getService(Components.interfaces.nsIObserverService).notifyObservers(null, 'Adblock-PrefChange', 'adblock');"/>
  53.                 <menuitem id="disableAdblock" label="Disable Adblock" oncommand="Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch('adblock.').setBoolPref('enabled', false); Components.classes['@mozilla.org/observer-service;1'].getService(Components.interfaces.nsIObserverService).notifyObservers(null, 'Adblock-PrefChange', 'adblock');"/>
  54.         </popup>
  55.         -->
  56.     </statusbar> 
  57.  
  58.     <!-- mozilla keybindings -->
  59.     <keyset id="navKeys">
  60.         <key id="mozillakey-toggle-adblock" modifiers="accel,shift" key="b" oncommand="toggleAdblockEnable();"/>
  61.         <key id="mozillakey-toggle-adblock-flashblock" modifiers="accel,shift" key="f" oncommand="toggleObjectOverride();"/>
  62.         <key id="mozillakey-launch-adblock-filterall" modifiers="accel,shift" key="a" oncommand="filterAllDialog(true);"/>
  63.         <key id="mozillakey-toggle-adblock-quickblock" modifiers="accel,shift" key="k" oncommand="toggleQuickblockEnable();"/>
  64.         <key id="mozillakey-launch-adblock-preferences" modifiers="accel,shift" key="p" oncommand="adblockSettings();"/>
  65.     </keyset>
  66.     <!-- firebird keybindings -->
  67.     <keyset id="mainKeyset">
  68.         <key id="firebirdkey-toggle-adblock" modifiers="accel,shift" key="b" oncommand="toggleAdblockEnable();"/>
  69.         <key id="firebirdkey-toggle-adblock-flashblock" modifiers="accel,shift" key="f" oncommand="toggleObjectOverride();"/>
  70.         <key id="firebirdkey-launch-adblock-filterall" modifiers="accel,shift" key="a" oncommand="filterAllDialog(true);"/>
  71.         <key id="firebirdkey-toggle-adblock-quickblock" modifiers="accel,shift" key="k" oncommand="toggleQuickblockEnable();"/>
  72.         <key id="firebirdkey-launch-adblock-preferences" modifiers="accel,shift" key="p" oncommand="adblockSettings();"/>
  73.     </keyset>
  74.  
  75.     <!-- mozilla tools menu -->
  76.     <menupopup id="taskPopup">
  77.     <!--menuseparator id="adblock-separator-mozillamenuitem" xxinsertafter="popup,image,wallet" position="3"/-->
  78.     <menu label="Adblock" accesskey="A" position="7">
  79.         <menupopup>
  80.             <menuitem id="adblock-filterall-mozillamenuitem" label="List All Blockable Elements" key="mozillakey-launch-adblock-filterall" oncommand="filterAllDialog(true);"/>
  81.             <menuitem id="adblock-objectoverride-mozillamenuitem" label="Overlay Flash (for left-click)" key="mozillakey-toggle-adblock-flashblock" xxtype="checkbox" xxchecked="false" oncommand="toggleObjectOverride();"/>
  82.             <menuseparator/>
  83.             <menuitem id="adblock-settings-mozillamenuitem" label="Preferences" key="mozillakey-launch-adblock-preferences" oncommand="adblockSettings()"/>
  84.         </menupopup>
  85.     </menu>
  86.     </menupopup>
  87.     <!-- firebird tools menu -->
  88.     <menupopup id="menu_ToolsPopup">
  89.     <!--menuseparator id="adblock-separator-firebirdmenuitem" xxinsertafter="popup,image,wallet" position="3"/-->
  90.     <menu label="Adblock" accesskey="A" position="7">
  91.         <menupopup>
  92.             <menuitem id="adblock-filterall-firebirdmenuitem" label="List All Blockable Elements" key="firebirdkey-launch-adblock-filterall" oncommand="filterAllDialog(true);"/>
  93.             <menuitem id="adblock-objectoverride-firebirdmenuitem" label="Overlay Flash (for left-click)" key="firebirdkey-toggle-adblock-flashblock" xxtype="checkbox" xxchecked="false" oncommand="toggleObjectOverride();"/>
  94.             <menuseparator/>
  95.             <menuitem id="adblock-settings-firebirdmenuitem" label="Preferences" key="firebirdkey-launch-adblock-preferences" oncommand="adblockSettings();"/>
  96.         </menupopup>
  97.     </menu>
  98.     </menupopup> 
  99.     
  100.     <!-- common context-menu -->
  101.     <popup id="contentAreaContextMenu">
  102.         <!--menuseparator id="adblock-separator-menuitem" enabled="true"/ -->
  103.         <menuitem id="adblock-image-menuitem" label="Adblock Image" enabled="true" oncommand="itemFilterDialog();"/>
  104.         <menuitem id="adblock-embed-menuitem" label="Adblock Embed" enabled="true" oncommand="itemFilterDialog();"/>
  105.         <menuitem id="adblock-object-menuitem" label="Adblock Object" enabled="true" oncommand="itemFilterDialog();"/>
  106.         <menuitem id="adblock-applet-menuitem" label="Adblock Applet" enabled="true" oncommand="itemFilterDialog();"/>
  107.         <menuitem id="adblock-iframe-menuitem" label="Adblock iFrame" enabled="true" oncommand="itemFilterDialog(true);"/>
  108.         <menuitem id="adblock-maparea-menuitem" label="Adblock Remove Map" enabled="true" oncommand="disableMapArea();"/>
  109.     </popup> 
  110.     
  111. </overlay>